using UnityEngine;

public class DestroyableFallingObject : FallingObjectBehaviour
{
	public override void DisableObject()
	{
		if (!_isDestroyed)
		{
			_isDestroyed = true;
			_gameManager.ProcessCapture(this, _holeId);
			Invoke("DestroyObject", 3f);
		}
	}

	public override void ForceDisableObject()
	{
		if (!_isDestroyed)
		{
			_isDestroyed = true;
			_gameManager.ProcessCapture(this, _holeId);
			DestroyObject();
		}
	}

	private void DestroyObject()
	{
		UnityEngine.Object.Destroy(base.gameObject);
	}
}
